<template>
	<view class="header">
		<view class="top">
			<i class="back iconfont" @click="back">&#xe617;</i>
			<span>歌单</span>
		</view>
		
		<view class="content">
			<view class="left">
				<image :src="image" mode=""></image>
			</view>
			<view class="right">
				<p>{{title}}</p>
				<p class="desc">{{description}}</p>
			</view>
		</view>
	</view>
</template>
 
<script>
	export default {
		name: '',
		props: {
			title: {
				type: String,
				default: ""
			},
			description: {
				type: String,
				default: ""
			},
			image: {
				type: String,
				default: ""
			}
		},
		data(){
			return {
				
			}
		},
		methods:{
			back() {
				uni.navigateBack({
					animationType: "slide-out-right",
					animationDuration: 1000
				})
			}
		}
	}
</script>
 
<style lang="less" scoped>
	.top {
		padding: 10px 20upx 0 20upx;
		overflow: hidden;
		i {
			font-size: 50upx;
			margin-right: 15px;
		}
		span {
			display: inline-block;
			height: 20px;
			line-height: 20px;
			font-size: 30upx;
		}
	}
	.content {
		display: flex;
		padding-top: 20px;
		padding-bottom: 10px;
		border-bottom: 1px solid #eee;
		.left {
			width: 130px;
			padding-left: 20px;
			image {
				width: 90px;
				height: 90px;
				border-radius: 10px;
			}
		}
		.right {
			width: 500upx;
			padding-top: 5px;
			padding-left: 10px;
			font-size: 13px;
		}
	}
	.desc {
		margin-top: 40px;
		margin-right: 10px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 10px;
		color: #7f8c8d;
	}
</style>
